package com.htudata.hieyes.alarm.dao;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import java.util.List;

import com.htudata.hieyes.alarm.mapper.AlarmStatisMapper;
import com.htudata.hieyes.alarm.pojo.po.AlarmLevelPO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class AlarmStatisDao {
  @Autowired
  private AlarmStatisMapper alarmStatisMapper;
  
  public List<AlarmLevelPO> selectAlarmLevelList() {
    return this.alarmStatisMapper.selectAlarmLevelList();
  }
  
  public JSONArray selectNodeProblems(long startTimeInt, long endTimeInt) {
    return this.alarmStatisMapper.selectNodeProblems(startTimeInt, endTimeInt);
  }
  
  public JSONObject countItems() {
    return this.alarmStatisMapper.countItems();
  }
  
  public JSONObject getDataCollectStatis() {
    return this.alarmStatisMapper.getDataCollectStatis();
  }
  
  public JSONArray getDataCollectAlarm(String tableName) {
    return this.alarmStatisMapper.getDataCollectAlarm(tableName);
  }
  
  public JSONArray getAllCollectItems() {
    return this.alarmStatisMapper.getAllCollectItems();
  }
}
